<template>
	<view>
		<u-cell-group>
			<u-cell title="客户名称" :value="info.nickname"></u-cell>
			<u-cell title="性别" :value="info.gender_text"></u-cell>
			<u-cell title="手机号码" :value="info.mobile"></u-cell>
			<u-cell title="客户来源" :value="info.source.name"></u-cell>
			<u-cell title="成交状态" :value="info.deal_text"></u-cell>
			<u-cell title="创建时间" :value="info.createtime"></u-cell>
			<u-cell title="地区" :value="info.region_text"></u-cell>

		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				busid: 0,
				LoginUser: {},
				info: {
					source: {}
				},
			}
		},
		onLoad(options) {
			this.busid = options.busid ?? 0
		},
		onShow() {
			this.$u.auth.check()
			this.LoginUser = uni.getStorageSync('LoginUser') ? uni.getStorageSync('LoginUser') : {};
			this.getPrivateseaInfo()
		},
		methods: {
			async getPrivateseaInfo() {
				let result = await this.$u.api.business.PrivateseaInfo({
					busid: this.busid
				})
				if (result.code == 1) {
					this.info = result.data
				}
			}
		}
	}
</script>

<style>
</style>